cd /ML-Faas-james/ml-faas-netes
kubectl apply -f namespaces.yml
cd ..
helm install ml-openfaas . --namespace openfaas --set functionNamespace=openfaas-fn --set generateBasicAuth=true
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose up
version: '2'
services:
drone-server:
image: drone/drone:1
container_name: drone-server
ports:
- 80:80
volumes:
- /var/lib/drone:/var/lib/drone/
restart: always
environment:
- DRONE_SERVER_HOST="Your domain"
- DRONE_SERVER_PROTO=https
- DRONE_RPC_SECRET="Your RPC"
- DRONE_GITHUB_CLIENT_ID="Your ID"
- DRONE_GITHUB_CLIENT_SECRET="Your CLIENT_SECRET"
- DRONE_TMATE_ENABLED=true
- DRONE_TMATE_HOST="Your domain"
- DRONE_TMATE_PORT=2200
- DRONE_TMATE_FINGERPRINT_RSA="Your FINGERPRINT_RSA"
- DRONE_TMATE_FINGERPRINT_ED25519="Your FINGERPRINT_ED25519"
drone-runner:
image: drone/drone-runner-docker:1.8.2
container_name: drone-runner
restart: always
depends_on:
- drone-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_RPC_HOST=drone-server
- DRONE_RPC_PROTO=http
- DRONE_RPC_SECRET="Your RPC"
- DRONE_RUNNER_CAPACITY=2
Install ArgoCD on Kubernetes
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
Change the argocd-server service type to LoadBalancer
kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}'
kubectl apply -f ml-faas/ml-flow-crd/ml-flow-crd.yaml